using SqlSugar;
using System;

namespace AD.Pms.Service.DtoModel
{
    /// <summary>
    /// 系统用户表
    /// </summary>
    public class tbl_SysUser
    {
        /// <summary>
        /// 系统用户表
        /// </summary>
        public tbl_SysUser()
        {
        }

        /// <summary>
        /// 主键标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int PKID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public System.Guid? UserID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? UserType { get; set; }

        /// <summary>
        /// 用户登录账号
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 用户登录密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 用户状态 1.正常 2.限制手机号登录
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 累计登录次数
        /// </summary>
        public int? LoginCount { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime? LoginTime { get; set; }

        /// <summary>
        /// 登录错误次数
        /// </summary>
        public int? LoginErrorCount { get; set; }

        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 上次登录信息（json格式，包含浏览器、IP、地址）
        /// </summary>
        public string LastLoginInfo { get; set; }

        /// <summary>
        /// 账号状态
        /// </summary>
        public int? IsLocked { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public System.Guid? CreateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public System.Guid? UpdateBy { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public bool? IsDelete { get; set; }
    }
}